package com.goktech.sportsmall.utils;

public class DynamicNumberUtil {

    // 根据传入的数值，然后填充数字
    public static String fillStr(int numLength,int number){
        if((Math.pow(10,numLength)-1)>number) {
            String lengthNew = "%0" + numLength + "d";
            return String.format(lengthNew, number);
        }else{
            return null;
        }
    }
    // 返回字符串
    public static String getNo(String number){
        return "C"+ DateUtil.getDate("yyyyMMdd")+number;
    }
}
